
package com.xifan.myaccount.entity;

public class RecordType implements Comparable<RecordType> {
    public int frequency;
    public int opType;
    public int typeId;
    public int weight;
    public String typeName;
    public String typePinyin;
    public String lastDate;
    public String stamp;

    public int compareTo(RecordType another) {
        if (weight > another.weight)
            return 1;
        else if (weight == another.weight)
            return 0;
        else
            return -1;
    }
}
